package s3_8;

/**
 * @author Administrator
 * 子类：继承父类
 */
public class Universitytest extends University {
   @Override
   void enter (){
       if(math+english+chinese+sport>=290){
           double x;
           x=math+english+chinese+sport;
           System.out.println("恭喜！4门课总分为："+x+"，达到重点大学录取线");
       }else{
           System.out.println("您未被重点大学录取！");
       }
   }
}
